import request from '@/utils/request'

// 查询t2订单商品明细列表
export function listBiOrderProduct(query) {
  return request({
    url: '/product/BiOrderProduct/list',
    method: 'get',
    params: query
  })
}
// 查询BiOrigOrderProduct列表
export function deleteByPaymentPeriod(query) {
  return request({
    url: '/product/BiOrderProduct/deleteByPaymentPeriod',
    method: 'delete',
    params: query
  })
}
// 查询t2订单商品明细详细
export function getBiOrderProduct(id) {
  return request({
    url: '/product/BiOrderProduct/' + id,
    method: 'get'
  })
}

// 新增t2订单商品明细
export function addBiOrderProduct(data) {
  return request({
    url: '/product/BiOrderProduct',
    method: 'post',
    data: data
  })
}
// 新增t2订单商品明细
export function orderDataCleansing(data) {
  return request({
    url: '/product/BiOrderProduct/orderDataCleansing',
    method: 'post',
    data: data
  })
}
// 新增t2订单商品明细
export function orderMarking(data) {
  return request({
    url: '/product/BiOrderProduct/orderMarking',
    method: 'post',
    data: data
  })
}



// 新增t2订单商品明细
export function updateBiOrderProductByDate(data) {
  return request({
    url: '/product/BiOrderProduct/updateBiOrderProductByDate',
    method: 'post',
    params: data
  })
}
// 新增t2订单商品明细
export function batchInsertBiOrderProductByDate(data) {
  return request({
    url: '/product/BiOrderProduct/batchInsertBiOrderProductByDate',
    method: 'post',
    params: data
  })
}
// 修改t2订单商品明细
export function updateBiOrderProduct(data) {
  return request({
    url: '/product/BiOrderProduct',
    method: 'put',
    data: data
  })
}

// 删除t2订单商品明细
export function delBiOrderProduct(id) {
  return request({
    url: '/product/BiOrderProduct/' + id,
    method: 'delete'
  })
}
